package com.daiqee.pojo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 供应商还款
 * 
 * <br/>
 * @since JDK 1.8
 * @version  V2.1
 * @author RichardTang 
 * @date: 2018年5月7日 下午5:48:00
 * @package com.daiqee.pojo
 * @copyright:Copyright (c) 2018, 1245811923@qq.com All Rights Reserved.
 */
@TableName(value="supplier_repayment")
public class SupplierRepayment extends LogicDeleteFlag{
	
	@TableId(type=IdType.AUTO)
    private Integer 	supRepayId;                     		//id号        
                           
	@TableField(strategy=FieldStrategy.NOT_EMPTY)
    private String 		supRepaySupplierName; 		            //还款供应商名称    
                
	@TableField(strategy=FieldStrategy.NOT_EMPTY)
    private Integer 	supRepayLastyearRepayment;      //去年还款       
                                                                 
    private Integer 	supRepayJanuary;        		//一月还款       
                                                                 
	private Integer 	supRepayFebruary;        		//二月还款       
		
	private Integer 	supRepayMarch;        			//三月还款       
	                                                             
	private Integer 	supRepayApril;        			//四月还款       
	                                                             
	private Integer 	supRepayMay;       				//五月还款       
	                                                             
	private Integer 	supRepayJune;        			//六月还款       
	                                                             
	private Integer 	supRepayJuly;        			//七月还款       
	                                                             
	private Integer 	supRepayAugust;       			//八月还款       
	                                                             
	private Integer 	supRepaySeptember;        		//九月还款       
	                                                             
	private Integer 	supRepayOctober;        		//十月还款       
	                                                             
	private Integer 	supRepayNovember;        		//十一月还款      
	                                                             
	private Integer 	supRepayDecember;        		//十二月还款      
	            
	@TableField(strategy=FieldStrategy.NOT_EMPTY)
	private Integer 	supRepaySum;        //总还款额       
                                                                 
    private String 		supRepayRemark;     //备注信息        

    @JsonIgnore
    public Integer getSumValue() {
		return supRepayLastyearRepayment+supRepayJanuary+supRepayFebruary+supRepayMarch
				+supRepayApril+supRepayMay+supRepayJune+supRepayJuly+supRepayAugust
				+supRepaySeptember+supRepayOctober+supRepayNovember+supRepayDecember;
    	
    }
    
    public Integer getSupRepayId() {
        return supRepayId;
    }

    public void setSupRepayId(Integer supRepayId) {
        this.supRepayId = supRepayId;
    }

    public String getSupRepaySupplierName() {
        return supRepaySupplierName;
    }

    public void setSupRepaySupplierName(String supRepaySupplierName) {
        this.supRepaySupplierName = supRepaySupplierName == null ?  null : supRepaySupplierName.trim();
    }

    public Integer getSupRepayLastyearRepayment() {
        return supRepayLastyearRepayment == null?0:supRepayLastyearRepayment;
    }

    public void setSupRepayLastyearRepayment(Integer supRepayLastyearRepayment) {
        this.supRepayLastyearRepayment = (supRepayLastyearRepayment == null)?null:supRepayLastyearRepayment;
    }

    public Integer getSupRepayJanuary() {
        return supRepayJanuary == null?0:supRepayJanuary;
    }

    public void setSupRepayJanuary(Integer supRepayJanuary) {
        this.supRepayJanuary = (supRepayJanuary == null)?0:supRepayJanuary;
    }

    public Integer getSupRepayFebruary() {
        return supRepayFebruary == null?0:supRepayFebruary;
    }

    public void setSupRepayFebruary(Integer supRepayFebruary) {
        this.supRepayFebruary = (supRepayFebruary == null)?0:supRepayFebruary;
    }

    public Integer getSupRepayMarch() {
        return supRepayMarch == null?0:supRepayMarch;
    }

    public void setSupRepayMarch(Integer supRepayMarch) {
        this.supRepayMarch = (supRepayMarch == null)?0:supRepayMarch;
    }

    public Integer getSupRepayApril() {
        return supRepayApril == null?0:supRepayApril;
    }

    public void setSupRepayApril(Integer supRepayApril) {
        this.supRepayApril = (supRepayApril == null)?0:supRepayApril;
    }

    public Integer getSupRepayMay() {
        return supRepayMay == null?0:supRepayMay;
    }

    public void setSupRepayMay(Integer supRepayMay) {
        this.supRepayMay = (supRepayMay == null)?0:supRepayMay;
    }

    public Integer getSupRepayJune() {
        return supRepayJune == null?0:supRepayJune;
    }

    public void setSupRepayJune(Integer supRepayJune) {
        this.supRepayJune = (supRepayJune == null)?0:supRepayJune;
    }

    public Integer getSupRepayJuly() {
        return supRepayJuly == null?0:supRepayJuly;
    }

    public void setSupRepayJuly(Integer supRepayJuly) {
        this.supRepayJuly = (supRepayJuly == null)?0:supRepayJuly;
    }

    public Integer getSupRepayAugust() {
        return supRepayAugust == null?0:supRepayAugust;
    }

    public void setSupRepayAugust(Integer supRepayAugust) {
        this.supRepayAugust = (supRepayAugust == null)?0:supRepayAugust;
    }

    public Integer getSupRepaySeptember() {
        return supRepaySeptember == null?0:supRepaySeptember;
    }

    public void setSupRepaySeptember(Integer supRepaySeptember) {
        this.supRepaySeptember = (supRepaySeptember == null)?0:supRepaySeptember;
    }

    public Integer getSupRepayOctober() {
        return supRepayOctober == null?0:supRepayOctober;
    }

    public void setSupRepayOctober(Integer supRepayOctober) {
        this.supRepayOctober = (supRepayOctober == null)?0:supRepayOctober;
    }

    public Integer getSupRepayNovember() {
        return supRepayNovember == null?0:supRepayNovember;
    }

    public void setSupRepayNovember(Integer supRepayNovember) {
        this.supRepayNovember = (supRepayNovember == null)?0:supRepayNovember;
    }

    public Integer getSupRepayDecember() {
        return supRepayDecember == null?0:supRepayDecember;
    }

    public void setSupRepayDecember(Integer supRepayDecember) {
        this.supRepayDecember = (supRepayDecember == null)?0:supRepayDecember;
    }

    public Integer getSupRepaySum() {
        return supRepaySum;
    }

    public void setSupRepaySum(Integer supRepaySum) {
        this.supRepaySum = supRepaySum;
    }

    public String getSupRepayRemark() {
        return supRepayRemark;
    }

    public void setSupRepayRemark(String supRepayRemark) {
        this.supRepayRemark = supRepayRemark == null ? null : supRepayRemark.trim();
    }
}